import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login/Login'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import(/* webpackChunkName: "about" */ '../views/Login/Login.vue')
  },
  {
    path: '/',
    name: 'Home',
    component: () => import(/* webpackChunkName: "about" */ '../views/Home/Home.vue'),
    children: [
      {
        path: 'wel',
        name: 'Welcome',
        component: () => import(/* webpackChunkName: "about" */ '../views/Welcome/Welcome.vue'),
      },
      {
        path: '/getway',
        name: 'Getway',
        component: () => import(/* webpackChunkName: "about" */ '../views/Getway/Getway.vue'),
        children: [
          {
            path: '/getway/routing',
           component: () => import(/* webpackChunkName: "about" */ '../views/Routing/Routing.vue'),
          },
          {
            path: '/getway/routingDetail',
           component: () => import(/* webpackChunkName: "about" */ '../views/Routing/RoutingDetail.vue'),
          }
        ]
      },
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
